<form action="/admin/hotel/doaddimage/" method="post" enctype="multipart/form-data">
<?php
for ($i = 1; $i <= 5; $i++) :
?>
<div class="input-2"><input type="file" name="pic[]" size="80" /></div> 
<?php
endfor;
?>
<input type="submit" name="upload" value="Upload" />
<input type="hidden" name="txtHotelId" id="txtHotelId" value="<?php echo $this->hotelid; ?>" />
</form>